#!/usr/bin/python
from urllib import urlopen
from BeautifulSoup import BeautifulSoup

def GetPHPVersion():
    # get php latest version
    site="http://www.php.net"
    try:
        html=urlopen(site).read()
        soup=BeautifulSoup(html)
        dest=soup.find('a',attrs={"class":"download-link"})
        return dest.contents[0]
    except:
        return None
    
def GetASPNETVersion():
    # get asp.net lastest version
#     site=""
#     html=urlopen(site).read()
#     soup=BeautifulSoup(html)
#     dest=soup.find()
    return "ASP.NET/4.5"
